
const url = 'http://url.com/page?name=doki&username=jmis&age=22&height=180&weight=150'

const parseUrl = url => url
  .match(/([^?=&]+)(=([^&]*))/g || [])
  .reduce((a,v)=>(
    (a[v.slice(0,v.indexOf('='))] = v.slice(v.indexOf('=') + 1),a)
  ),{})

console.log(parseUrl(url))